<?php
/**
 * The Template for displaying all single posts.
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */

get_header(); ?>
<style>
#content {
background-color: #E5E5E5;
float: left;
height: auto;
margin-top: 10px;
margin-bottom: 10px;
width: 100%;
padding-bottom:50px;
}	
#div_left {
float: left;
height: auto;
margin-left: 20px;
padding-top: 30px;
width: 400px;
}
#div_right {
color: #ABABAB;
float: left;
font-family: Helvetica;
font-size: 11px;
font-style: italic;
height: auto;
margin-left: 40px;
padding-top: 25px;
text-align: left;
width: 500px;
}
.title {
font-family: helvetica;
font-size: 50px;
font-weight: bold;
line-height: 50px;
text-align: left;
width: 100%;
}
.bg_tagged {
background-position: -5px 5px;
float: left;
height: 35px;
width: 170px;
background-image:url("<?php bloginfo('template_url'); ?>/images/bg_tagged.jpg")
}
#tag_container {
float: left;
margin-bottom: 10px;
padding-top: 15px;
width: 230px;
}
.tag {
background-color: #79BBF8;
color: #FFFFFF;
float: left;
font-weight: bold;
line-height: 20px;
margin-bottom: 5px;
margin-right: 5px;
padding-left: 5px;
padding-right: 5px;
}
.tag a{
color: #FFFFFF;
text-decoration: none;
}
</style>	
		<div id="primary">
			<div id="content" role="main">
				<div id="div_left">
				<?php
				$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
				echo "<img src='$image[0]'/>";
				?>
				<div class="title"><?php echo $post->post_title?></div>
				<div class="bg_tagged"></div>
				<div id="tag_container">
				<?php
				$tags = wp_get_post_tags($post->ID);
				if ($tags) {
					foreach($tags as $tag) {
						echo '<div class="tag"><a href="' . get_term_link( $tag, 'post_tag' ) . '" title="' . sprintf( __( "View all posts in %s" ), $tag->name ) . '" ' . '>' . $tag->name.'</a></div>';
					}
				}

				?>
				</div>
				</div>
				<div id="div_right"><?php echo apply_filters('the_content', $post->post_content);?>
				</div>

			</div><!-- #content -->
		</div><!-- #primary -->

<?php get_footer(); ?>